.class Lcom/estrongs/android/ui/dialog/k0$b;
.super Ljava/lang/Object;
.source "NewWindowDialog.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/ui/dialog/k0;->a(Lcom/estrongs/android/ui/dialog/k0$c;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/ui/dialog/k0$c;

.field final synthetic b:Lcom/estrongs/android/ui/dialog/k0;


# direct methods
.method constructor <init>(Lcom/estrongs/android/ui/dialog/k0;Lcom/estrongs/android/ui/dialog/k0$c;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/k0$b;->b:Lcom/estrongs/android/ui/dialog/k0;

    iput-object p2, p0, Lcom/estrongs/android/ui/dialog/k0$b;->a:Lcom/estrongs/android/ui/dialog/k0$c;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 5

    .line 1
    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/k0$b;->a:Lcom/estrongs/android/ui/dialog/k0$c;

    invoke-virtual {p2}, Lcom/estrongs/android/ui/dialog/k0$c;->l()Ljava/lang/String;

    move-result-object p2

    const v0, 0x7f110660

    const/4 v1, 0x1

    if-eqz p2, :cond_a

    const-string v2, ""

    .line 2
    invoke-virtual {v2, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_a

    const-string v2, "/"

    const-string v3, "\\"

    .line 3
    invoke-virtual {p2, v3, v2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p2

    .line 4
    iget-object v3, p0, Lcom/estrongs/android/ui/dialog/k0$b;->a:Lcom/estrongs/android/ui/dialog/k0$c;

    invoke-virtual {v3}, Lcom/estrongs/android/ui/dialog/k0$c;->m()I

    move-result v3

    if-eq v1, v3, :cond_6

    const/4 v3, 0x3

    iget-object v4, p0, Lcom/estrongs/android/ui/dialog/k0$b;->a:Lcom/estrongs/android/ui/dialog/k0$c;

    invoke-virtual {v4}, Lcom/estrongs/android/ui/dialog/k0$c;->m()I

    move-result v4

    if-ne v3, v4, :cond_0

    goto/16 :goto_0

    .line 5
    :cond_0
    iget-object v3, p0, Lcom/estrongs/android/ui/dialog/k0$b;->a:Lcom/estrongs/android/ui/dialog/k0$c;

    invoke-virtual {v3}, Lcom/estrongs/android/ui/dialog/k0$c;->m()I

    move-result v3

    const/4 v4, 0x2

    if-ne v4, v3, :cond_2

    .line 6
    invoke-static {p2}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_1

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/k0$b;->b:Lcom/estrongs/android/ui/dialog/k0;

    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/k0;->a(Lcom/estrongs/android/ui/dialog/k0;)Landroid/content/Context;

    move-result-object p1

    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/k0$b;->b:Lcom/estrongs/android/ui/dialog/k0;

    invoke-static {p2}, Lcom/estrongs/android/ui/dialog/k0;->a(Lcom/estrongs/android/ui/dialog/k0;)Landroid/content/Context;

    move-result-object p2

    invoke-virtual {p2, v0}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p2

    invoke-static {p1, p2, v1}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    return-void

    .line 8
    :cond_1
    new-instance v2, Ljava/io/File;

    invoke-direct {v2, p2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 9
    iget-object v3, p0, Lcom/estrongs/android/ui/dialog/k0$b;->b:Lcom/estrongs/android/ui/dialog/k0;

    invoke-static {v3}, Lcom/estrongs/android/ui/dialog/k0;->a(Lcom/estrongs/android/ui/dialog/k0;)Landroid/content/Context;

    move-result-object v3

    invoke-static {v3, v2}, Lcom/estrongs/android/util/h0;->a(Landroid/content/Context;Ljava/io/File;)Z

    move-result v2

    if-eqz v2, :cond_9

    .line 10
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/k0$b;->b:Lcom/estrongs/android/ui/dialog/k0;

    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/k0;->a(Lcom/estrongs/android/ui/dialog/k0;)Landroid/content/Context;

    move-result-object p1

    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/k0$b;->b:Lcom/estrongs/android/ui/dialog/k0;

    invoke-static {p2}, Lcom/estrongs/android/ui/dialog/k0;->a(Lcom/estrongs/android/ui/dialog/k0;)Landroid/content/Context;

    move-result-object p2

    invoke-virtual {p2, v0}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p2

    invoke-static {p1, p2, v1}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    return-void

    :cond_2
    const/4 v0, 0x4

    .line 11
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/k0$b;->a:Lcom/estrongs/android/ui/dialog/k0$c;

    invoke-virtual {v1}, Lcom/estrongs/android/ui/dialog/k0$c;->m()I

    move-result v1

    if-ne v0, v1, :cond_9

    const-string v0, "//"

    .line 12
    invoke-virtual {p2, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 13
    invoke-virtual {p2, v4}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p2

    .line 14
    :cond_3
    invoke-static {p2}, Lcom/estrongs/android/util/h0;->n2(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_4

    .line 15
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "smb://"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .line 16
    :cond_4
    invoke-virtual {p2, v2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_5

    .line 17
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .line 18
    :cond_5
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/k0$b;->b:Lcom/estrongs/android/ui/dialog/k0;

    invoke-static {v0, p2}, Lcom/estrongs/android/ui/dialog/k0;->a(Lcom/estrongs/android/ui/dialog/k0;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    goto :goto_1

    .line 19
    :cond_6
    :goto_0
    invoke-static {p2}, Lcom/estrongs/android/util/h0;->s1(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_9

    const-string v2, "."

    .line 20
    invoke-virtual {p2, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v2

    if-lez v2, :cond_8

    .line 21
    invoke-virtual {p2}, Ljava/lang/String;->length()I

    move-result v3

    sub-int/2addr v3, v1

    if-ge v2, v3, :cond_8

    .line 22
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/k0$b;->a:Lcom/estrongs/android/ui/dialog/k0$c;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/k0$c;->m()I

    move-result v0

    if-ne v1, v0, :cond_7

    .line 23
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "http://"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    goto :goto_1

    .line 24
    :cond_7
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "https://"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    goto :goto_1

    .line 25
    :cond_8
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/k0$b;->b:Lcom/estrongs/android/ui/dialog/k0;

    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/k0;->a(Lcom/estrongs/android/ui/dialog/k0;)Landroid/content/Context;

    move-result-object p1

    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/k0$b;->b:Lcom/estrongs/android/ui/dialog/k0;

    invoke-static {p2}, Lcom/estrongs/android/ui/dialog/k0;->a(Lcom/estrongs/android/ui/dialog/k0;)Landroid/content/Context;

    move-result-object p2

    invoke-virtual {p2, v0}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p2

    invoke-static {p1, p2, v1}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    return-void

    .line 26
    :cond_9
    :goto_1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/k0$b;->b:Lcom/estrongs/android/ui/dialog/k0;

    iget-object v0, v0, Lcom/estrongs/android/ui/dialog/k0;->c:Lcom/estrongs/android/ui/dialog/k0$d;

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/k0$b;->a:Lcom/estrongs/android/ui/dialog/k0$c;

    invoke-virtual {v1}, Lcom/estrongs/android/ui/dialog/k0$c;->m()I

    move-result v1

    invoke-interface {v0, v1, p2}, Lcom/estrongs/android/ui/dialog/k0$d;->a(ILjava/lang/String;)V

    .line 27
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    goto :goto_2

    .line 28
    :cond_a
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/k0$b;->b:Lcom/estrongs/android/ui/dialog/k0;

    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/k0;->a(Lcom/estrongs/android/ui/dialog/k0;)Landroid/content/Context;

    move-result-object p1

    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/k0$b;->b:Lcom/estrongs/android/ui/dialog/k0;

    invoke-static {p2}, Lcom/estrongs/android/ui/dialog/k0;->a(Lcom/estrongs/android/ui/dialog/k0;)Landroid/content/Context;

    move-result-object p2

    invoke-virtual {p2, v0}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p2

    invoke-static {p1, p2, v1}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    :goto_2
    return-void
.end method
